﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DocumentGain.model
{
    /// <summary>
    /// SF_InstanceContext:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class SF_InstanceContext
    {
        public SF_InstanceContext()
        { }
        #region Model
        private string _objectid;
        private int? _approval;
        private string _binparametertable;
        private byte[] _binparentdatamaps;
        private DateTime? _createdtime;
        private long? _currentwaitingreplyid;
        private decimal? _customcost1;
        private decimal? _customcost1rate;
        private decimal? _customcost2;
        private decimal? _customcost2rate;
        private decimal? _customcost3;
        private decimal? _customcost3rate;
        private decimal? _customcost4;
        private decimal? _customcost4rate;
        private decimal? _customcost5;
        private decimal? _customcost5rate;
        private DateTime? _estimatedfinishtime;
        private int? _exceptional;
        private string _externalprimarykey;
        private string _externalprimaryvalue;
        private string _externaltablename;
        private long? _finaltokenid;
        private DateTime? _finishtime;
        private decimal? _humancost;
        private decimal? _humancostrate;
        private long? _initiativetokenid;
        private string _instancename;
        private int? _ischildinstance;
        private DateTime? _lastactivetime;
        private decimal? _machinecost;
        private decimal? _machinecostrate;
        private decimal? _managementcost;
        private decimal? _managementcostrate;
        private decimal? _materialcost;
        private decimal? _materialcostrate;
        private int? _messageemergency;
        private long? _nexttokenid;
        private int? _notifyparentfinished;
        private string _orgunit;
        private string _originategroup;
        private string _originator;
        private string _parentactivityname;
        private long? _parentactivityreplyid;
        private long? _parentactivitytokenid;
        private string _parentinstanceid;
        private DateTime? _planfinishtime;
        private int? _priority;
        private decimal? _progress;
        private int? _recurrences;
        private decimal? _recurrencesrate;
        private string _sequenceno;
        private int? _spsbounded;
        private string _spsinstancelist;
        private int? _spsinstancelistitemid;
        private string _spsinstancesite;
        private string _spsinstancewebname;
        private string _spslist;
        private int? _spslistitemid;
        private string _spslistitemurl;
        private string _spssite;
        private string _spswebname;
        private DateTime? _starttime;
        private int? _state;
        private int? _suspended;
        private decimal? _totalcost;
        private decimal? _totalcostrate;
        private long? _usedtime;
        private decimal? _usedtimerate;
        private int? _usersuspended;
        private string _workflowname;
        private string _workflowpackage;
        private int? _workflowversion;
        private DateTime? _extfield_d1;
        private DateTime? _extfield_d2;
        private int? _extfield_i1;
        private int? _extfield_i2;
        private int? _extfield_i3;
        private int? _extfield_i4;
        private int? _extfield_i5;
        private long? _extfield_l1;
        private long? _extfield_l2;
        private string _extfield_s1;
        private string _extfield_s2;
        private string _extfield_s3;
        private string _extfield_s4;
        private string _extfield_s5;
        private string _extfield_s6;
        private string _extfield_s7;
        private int? _parentindex;
        private string _parentobjectid;
        private string _parentpropertyname;
        /// <summary>
        /// 
        /// </summary>
        public string ObjectID
        {
            set { _objectid = value; }
            get { return _objectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Approval
        {
            set { _approval = value; }
            get { return _approval; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string BinParameterTable
        {
            set { _binparametertable = value; }
            get { return _binparametertable; }
        }
        /// <summary>
        /// 
        /// </summary>
        public byte[] BinParentDataMaps
        {
            set { _binparentdatamaps = value; }
            get { return _binparentdatamaps; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? CreatedTime
        {
            set { _createdtime = value; }
            get { return _createdtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? CurrentWaitingReplyID
        {
            set { _currentwaitingreplyid = value; }
            get { return _currentwaitingreplyid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost1
        {
            set { _customcost1 = value; }
            get { return _customcost1; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost1Rate
        {
            set { _customcost1rate = value; }
            get { return _customcost1rate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost2
        {
            set { _customcost2 = value; }
            get { return _customcost2; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost2Rate
        {
            set { _customcost2rate = value; }
            get { return _customcost2rate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost3
        {
            set { _customcost3 = value; }
            get { return _customcost3; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost3Rate
        {
            set { _customcost3rate = value; }
            get { return _customcost3rate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost4
        {
            set { _customcost4 = value; }
            get { return _customcost4; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost4Rate
        {
            set { _customcost4rate = value; }
            get { return _customcost4rate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost5
        {
            set { _customcost5 = value; }
            get { return _customcost5; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? CustomCost5Rate
        {
            set { _customcost5rate = value; }
            get { return _customcost5rate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? EstimatedFinishTime
        {
            set { _estimatedfinishtime = value; }
            get { return _estimatedfinishtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Exceptional
        {
            set { _exceptional = value; }
            get { return _exceptional; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExternalPrimaryKey
        {
            set { _externalprimarykey = value; }
            get { return _externalprimarykey; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExternalPrimaryValue
        {
            set { _externalprimaryvalue = value; }
            get { return _externalprimaryvalue; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExternalTableName
        {
            set { _externaltablename = value; }
            get { return _externaltablename; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? FinalTokenId
        {
            set { _finaltokenid = value; }
            get { return _finaltokenid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? FinishTime
        {
            set { _finishtime = value; }
            get { return _finishtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? HumanCost
        {
            set { _humancost = value; }
            get { return _humancost; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? HumanCostRate
        {
            set { _humancostrate = value; }
            get { return _humancostrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? InitiativeTokenId
        {
            set { _initiativetokenid = value; }
            get { return _initiativetokenid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string InstanceName
        {
            set { _instancename = value; }
            get { return _instancename; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? IsChildInstance
        {
            set { _ischildinstance = value; }
            get { return _ischildinstance; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? LastActiveTime
        {
            set { _lastactivetime = value; }
            get { return _lastactivetime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? MachineCost
        {
            set { _machinecost = value; }
            get { return _machinecost; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? MachineCostRate
        {
            set { _machinecostrate = value; }
            get { return _machinecostrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? ManagementCost
        {
            set { _managementcost = value; }
            get { return _managementcost; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? ManagementCostRate
        {
            set { _managementcostrate = value; }
            get { return _managementcostrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? MaterialCost
        {
            set { _materialcost = value; }
            get { return _materialcost; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? MaterialCostRate
        {
            set { _materialcostrate = value; }
            get { return _materialcostrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? MessageEmergency
        {
            set { _messageemergency = value; }
            get { return _messageemergency; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? NextTokenId
        {
            set { _nexttokenid = value; }
            get { return _nexttokenid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? NotifyParentFinished
        {
            set { _notifyparentfinished = value; }
            get { return _notifyparentfinished; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string OrgUnit
        {
            set { _orgunit = value; }
            get { return _orgunit; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string OriginateGroup
        {
            set { _originategroup = value; }
            get { return _originategroup; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Originator
        {
            set { _originator = value; }
            get { return _originator; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ParentActivityName
        {
            set { _parentactivityname = value; }
            get { return _parentactivityname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? ParentActivityReplyID
        {
            set { _parentactivityreplyid = value; }
            get { return _parentactivityreplyid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? ParentActivityTokenId
        {
            set { _parentactivitytokenid = value; }
            get { return _parentactivitytokenid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ParentInstanceID
        {
            set { _parentinstanceid = value; }
            get { return _parentinstanceid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? PlanFinishTime
        {
            set { _planfinishtime = value; }
            get { return _planfinishtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Priority
        {
            set { _priority = value; }
            get { return _priority; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Progress
        {
            set { _progress = value; }
            get { return _progress; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Recurrences
        {
            set { _recurrences = value; }
            get { return _recurrences; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? RecurrencesRate
        {
            set { _recurrencesrate = value; }
            get { return _recurrencesrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SequenceNo
        {
            set { _sequenceno = value; }
            get { return _sequenceno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SpsBounded
        {
            set { _spsbounded = value; }
            get { return _spsbounded; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsInstanceList
        {
            set { _spsinstancelist = value; }
            get { return _spsinstancelist; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SpsInstanceListItemId
        {
            set { _spsinstancelistitemid = value; }
            get { return _spsinstancelistitemid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsInstanceSite
        {
            set { _spsinstancesite = value; }
            get { return _spsinstancesite; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsInstanceWebName
        {
            set { _spsinstancewebname = value; }
            get { return _spsinstancewebname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsList
        {
            set { _spslist = value; }
            get { return _spslist; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? SpsListItemId
        {
            set { _spslistitemid = value; }
            get { return _spslistitemid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsListItemUrl
        {
            set { _spslistitemurl = value; }
            get { return _spslistitemurl; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsSite
        {
            set { _spssite = value; }
            get { return _spssite; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SpsWebName
        {
            set { _spswebname = value; }
            get { return _spswebname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? StartTime
        {
            set { _starttime = value; }
            get { return _starttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Suspended
        {
            set { _suspended = value; }
            get { return _suspended; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? TotalCost
        {
            set { _totalcost = value; }
            get { return _totalcost; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? TotalCostRate
        {
            set { _totalcostrate = value; }
            get { return _totalcostrate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? UsedTime
        {
            set { _usedtime = value; }
            get { return _usedtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? UsedTimeRate
        {
            set { _usedtimerate = value; }
            get { return _usedtimerate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? UserSuspended
        {
            set { _usersuspended = value; }
            get { return _usersuspended; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string WorkflowName
        {
            set { _workflowname = value; }
            get { return _workflowname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string WorkflowPackage
        {
            set { _workflowpackage = value; }
            get { return _workflowpackage; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? WorkflowVersion
        {
            set { _workflowversion = value; }
            get { return _workflowversion; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? ExtField_D1
        {
            set { _extfield_d1 = value; }
            get { return _extfield_d1; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? ExtField_D2
        {
            set { _extfield_d2 = value; }
            get { return _extfield_d2; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ExtField_I1
        {
            set { _extfield_i1 = value; }
            get { return _extfield_i1; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ExtField_I2
        {
            set { _extfield_i2 = value; }
            get { return _extfield_i2; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ExtField_I3
        {
            set { _extfield_i3 = value; }
            get { return _extfield_i3; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ExtField_I4
        {
            set { _extfield_i4 = value; }
            get { return _extfield_i4; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ExtField_I5
        {
            set { _extfield_i5 = value; }
            get { return _extfield_i5; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? ExtField_L1
        {
            set { _extfield_l1 = value; }
            get { return _extfield_l1; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long? ExtField_L2
        {
            set { _extfield_l2 = value; }
            get { return _extfield_l2; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S1
        {
            set { _extfield_s1 = value; }
            get { return _extfield_s1; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S2
        {
            set { _extfield_s2 = value; }
            get { return _extfield_s2; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S3
        {
            set { _extfield_s3 = value; }
            get { return _extfield_s3; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S4
        {
            set { _extfield_s4 = value; }
            get { return _extfield_s4; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S5
        {
            set { _extfield_s5 = value; }
            get { return _extfield_s5; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S6
        {
            set { _extfield_s6 = value; }
            get { return _extfield_s6; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExtField_S7
        {
            set { _extfield_s7 = value; }
            get { return _extfield_s7; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ParentIndex
        {
            set { _parentindex = value; }
            get { return _parentindex; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ParentObjectID
        {
            set { _parentobjectid = value; }
            get { return _parentobjectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ParentPropertyName
        {
            set { _parentpropertyname = value; }
            get { return _parentpropertyname; }
        }
        #endregion Model

    }
}
